﻿using MiniExcelLibs.Attributes;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PLCAlarmRuleConfigModule
{
    public  class ExcelModel
    {
        [ExcelColumnName("变量")]
        public string VarName { get; set;  }
        [ExcelColumnName("索引")]
        public string Index { get; set; }
        [ExcelColumnName("报警代码")]
        public string AlarmCode { get; set; }
        [ExcelColumnName("报警")]
        public string AlarmMessage { get; set;  }

        [ExcelColumnName("等级")]
        public string Leve { get; set; }
        [ExcelColumnName("启用")]

        public string IsActive { get; set; }
        [ExcelColumnName("解决方案")]
        public string SoulMessage { get; set; }


    }



    public class AlarmVarCodeRuleExcelModel 
    {
        [ExcelColumnName("名称")]
      

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        [ExcelColumnName("代码")]
        /// <summary>
        /// 编码
        /// </summary>
        public string Code { get; set; }
        [ExcelColumnName("类型")]
        /// <summary>
        /// 类型  1.J/T   2.程序单元  3.关键元器件   4.报警等级       6.序号无并     7.并 有A、B
        /// </summary>
        public int Type { get; set; }





    }
}
